A unifying type-theory for higher-order (amortized) cost analysis

نویسندگان

چکیده

This paper presents λ-amor, a new type-theoretic framework for amortized cost analysis of higher-order functional programs and shows that existing type systems can be embedded in it. λ-amor introduces modal representing potentials – costs have been accounted for, but not yet incurred, which are central to analysis. Additionally, relies on standard concepts like affineness, refinement types an indexed monad. is proved sound using rather simple logical relation. We embed two showing that, despite its simplicity, simulate different evaluation strategies (call-by-name call-by-value), styles (effect-based coeffect-based), with or without amortization. One the embeddings also implies relatively complete all terminating PCF programs.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Type Theory and Projections for Higher-Order Static Analysis

A system of annotated types is proposed as a means of describing and inferring static information, such as strictness and constancy, about functional programs. An abstract semantics is given in terms of projections. The paper then proceeds to demonstrate a close connection between annotated type assignment and projection analysis. 1 Introduction. Modern implementations of functional programming...

متن کامل

A cost analysis for a higher-order parallel programming model

Programming parallel computers remains a di cult task. An ideal programming environment should enable the user to concentrate on the problem solving activity at a convenient level of abstraction, while managing the intricate low-level details without sacri cing performance. This thesis investigates a model of parallel programming based on the BirdMeertens Formalism (BMF). This is a set of highe...

متن کامل

A New Three-Dimensional Refined Higher-Order Theory for Free Vibration Analysis of Composite Circular Cylindrical Shells

A new closed form formulation of three-dimensional (3-D) refined higher-order shell theory (RHOST) to analyze the free vibration of composite circular cylindrical shells has been presented in this article. The shell is considered to be laminated with orthotropic layers and simply supported boundary conditions. The proposed theory is used to investigate the effects of the in-plane and rotary ine...

متن کامل

Higher-Order Intensional Type Analysis

Intensional type analysis provides the ability to analyze abstracted types at run time. In this paper, we extend that ability to higherorder and kind-polymorphic type constructors. The resulting language is elegant and expressive. We show through examples how it extends the repertoire of polytypic definitions and the domain of valid types for those

متن کامل

Higher-order Abstract Syntax in Type Theory

We develop a general tool to formalize and reason about languages expressed using higher-order abstract syntax in a proof-tool based on type theory (Coq). A language is specified by its signature, which consists of sets of sort and operation names and typing rules. These rules prescribe the sorts and bindings of each operation. An algebra of terms is associated to a signature, using de Bruijn n...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2021

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3434308